/* 全局样式 */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #4e7eff, #6a8eff);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 开始考试按钮样式 */
.start-exam-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: #4e7eff;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 开始考试按钮悬停样式 */
.start-exam-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 考试须知界面样式 */
#instructions-screen {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 550px;
  position: relative;
  display: none;
  padding-bottom: 30px;
  animation: fadeIn 0.5s ease;
}

/* 答题界面样式 */
#question-screen {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 500px;
  position: relative;
  display: none;
  animation: fadeIn 0.5s ease;
}

/* 结果界面样式 */
#result-screen {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

/* 结果界面图片样式 */
#result-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* 二级标题样式 */
h2 {
  margin-top: 0;
  color: #333;
}

/* 分隔线样式 */
.separator {
  border: 0;
  height: 1px;
  background-color: #ccc;
  margin: 10px 0;
}

/* 考试须知内容样式 */
.instruction-content {
  text-align: left;
  color: #555;
}

/* 通用按钮样式 */
.btn {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  margin-right: 10px;
  transition: all 0.3s ease;
}

/* 轮廓按钮样式 */
.btn-outline {
  background-color: white;
  color: #007bff;
  border: 1px solid #007bff;
}

/* 轮廓按钮悬停样式 */
.btn-outline:hover {
  background-color: #007bff;
  color: white;
}

/* 主要按钮样式 */
.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
}

/* 主要按钮悬停样式 */
.btn-primary:hover {
  background-color: #0056b3;
}

/* 按钮容器样式 */
.button-container {
  text-align: right;
}

/* 头部样式 */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* 计时器包装器样式 */
#timer-wrapper {
  background-color: rgba(0, 123, 255, 0.755);
  padding: 5px 10px;
  border-radius: 5px;
  width: fit-content;
  color: white;
}

/* 进度条包装器样式 */
#progress-wrapper {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #555;
}

/* 计时器样式 */
#timer {
  font-size: 24px;
}

/* 进度条样式 */
#progress {
  font-size: 18px;
}

/* 题目容器样式 */
#question-container {
  margin-bottom: 50px;
}

/* 选项样式 */
.option {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

/* 选项悬停样式 */
.option:hover {
  background-color: #f0f0f0;
}

/* 正确选项样式 */
.option.correct {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* 错误选项样式 */
.option.incorrect {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* 正确和错误选项的伪元素样式 */
.option.correct::after,
.option.incorrect::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* 正确选项的伪元素样式 */
.option.correct::after {
  background-color: white;
  border: 2px solid #4CAF50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='none' stroke='%234CAF50' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M10 25l15 15 20-20'></path></svg>");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 错误选项的伪元素样式 */
.option.incorrect::after {
  background-color: white;
  border: 2px solid #f44336;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'></line><line x1='6' y1='6' x2='18' y2='18'></line></svg>");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 下一题按钮样式 */
#next-question-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 下一题按钮悬停样式 */
#next-question-btn:hover {
  background-color: #0056b3;
}

/* 得分和评价样式 */
#score,
#evaluation {
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  color: #555;
}

/* 按钮组样式 */
.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 重新考试按钮样式 */
#retake-exam-btn {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s ease;
  background-color: #007bff;
  color: white;
  border: none;
}

/* 重新考试按钮悬停样式 */
#retake-exam-btn:hover {
  background-color: #0056b3;
}

/* 结果界面退出考试按钮样式 */
#exit-result-exam-btn {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s ease;
  background-color: white;
  color: #007bff;
  border: 1px solid #007bff;
}

/* 结果界面退出考试按钮悬停样式 */
#exit-result-exam-btn:hover {
  background-color: #007bff;
  color: white;
}

/* 时间线样式 */
#timeline {
  height: 5px;
  background-color: #007bff;
  margin-bottom: 10px;
  position: relative;
  width: 100%;
  transform-origin: left;
  animation: timeline 15s linear forwards;
}

/* 时间线动画关键帧 */
@keyframes timeline {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* 淡入动画关键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}    